package org.jeecg.modules.tls.blog.comment.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @description:
 * @author: 天之璎珞
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlogCommentVo {
    /**主键*/
    private String id;
    /**博客id*/
    private String articleId;
    /**评论内容*/
    private String commentContent;
    /**评论用户*/
    private String userId;
    /**父级节点*/
    private String pid;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**是否有子节点*/
    @Excel(name = "是否有子节点", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;

    private String usernameParent;

    private String username;

    private String avatar;

    private String rootId;

    private List<BlogCommentVo> children;
}
